﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsControl.aspx.cs" Inherits="Portal.Web.Admin.Article.NewsControl" %>

<table id="datagrid-news" title="新闻列表"></table>
<script type="text/javascript">
    $(document).ready(function () {
        var tableUrl = 'Article/GetNewsJson.aspx';
        var newsTable = $('#datagrid-news').datagrid({
            url: tableUrl, columns: newsColmns, toolbar: [{
                text: '添加',
                iconCls: 'icon-add',
                handler: function () {

                }
            }, '-', {
                text: '删除',
                iconCls: 'icon-remove',
                handler: function () {
                    TableDeleteRecord(newsTable, "Article/Delete");
                }
            }, '-', {
                text: '查询',
                iconCls: 'icon-search',
                handler: function () {

                }
            }]
        });
    });

</script>
